package com.zc.commons.utils;

public class StringUtil {

    public static boolean isEmpty(String str) {
        return str != null && "".equals(str.trim());
    }

    public static boolean isNullOrEmpty(String str) {
        return str == null ? true : "".equals(str.trim());
    }

    public static boolean isAllNullOrEmpty(String... params) {
        for (String param : params) {
            if (!isNullOrEmpty(param)) {
                return false;
            }
        }
        return true;
    }

    public static boolean isExistNullOrEmpty(String... params) {
        for (String param : params) {
            if (isNullOrEmpty(param)) {
                return true;
            }
        }
        return false;
    }

    public static boolean isNotAllNullOrEmpty(String... params) {
        for (String param : params) {
            if (isNullOrEmpty(param)) {
                return false;
            }
        }
        return true;
    }


}
